package com.wu.constants;

public class Constants {

    //---------redis---------
    public final static String REDIS_CACHE = "redis_cache";
    public final static String LOCK_KEY = "lock:x_lock_";
    public final static Long LOCK_TIMEOUT = 5 * 1000L;

    //----------shiro-------
    public final static String CODE_CACHE = "session_cache";
    public final static String SSO_SESSION_ID = "ssoSessionId";
    public final static String SSO_USERS = "ssoUsers";
    public final static String SHIRO_CACHE = "shiro:cache:";
    public final static String SHIRO_USER_RESOURCES = "user_resources_flag";

    //登录密码加密盐前缀
    public final static String SALT_CXDY = "cxdy";

    /**
     * 用户权限资源
     */
    public final static String USER_RESOURCES = "user_resources_url_";

    /**
     * 人员树结构权限资源
     */
    public final static String USER_RESOURCES_TREE = "user_resources_tree_";

    /**
     * 树结构权限资源,所有
     */
    public final static String ALL_RESOURCES_TREE = "all_resources_tree";

    /**
     * 测试环境
     */
    public static String DEV = "dev";


}
